<T:ViewBase x:Class="WPFExcelReport.TGS08"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                     xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:me="clr-namespace:WPFExcelReport" 
                    xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL" 
                     xmlns:Localization="clr-namespace:Localization;assembly=Localization"
                    Background="White"  
                    Name="TV"
                    Loaded="Window_Loaded"
     >
    <T:ViewBase.Resources>
        <CollectionViewSource  x:Key="vwMaster"/>
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:Divideby10000  x:Key="dw"/> 
        <ucd:TIMES100  x:Key="X100"/>
        <ucd:TIMES10  x:Key="X10"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:PreisConverter  x:Key="PreisConverter"/>
        <ucd:PNumConverter  x:Key="pnum"/>
        <ucd:TextTrimmingConverter  x:Key="Trim"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/> 
        </T:ViewBase.Resources>
     <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="1*"></RowDefinition> 
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="1*"/>
            <ColumnDefinition Width="1*"/>
        </Grid.ColumnDefinitions>
            <StackPanel Grid.Row="0">
            <WrapPanel>
            <Button Grid.Row="0" Click="Load_Click" Height="20" Margin="5,0,0,0" Width="20" BorderBrush="White">
                <Button.Background>
                    <ImageBrush  ImageSource="/ImagePackage;component/Images/Reload.png" />
                </Button.Background>
            </Button>
            </WrapPanel>
        </StackPanel>
        <DataGrid  Grid.Row="1"  Grid.Column="0"
                   VerticalAlignment="Top" 
                   AutoGenerateColumns="False"
                   EnableRowVirtualization="False"
                   VerticalScrollBarVisibility="Auto"
                   HorizontalScrollBarVisibility="Auto"
                   HeadersVisibility="Column" 
                   ItemsSource="{Binding Source={StaticResource ResourceKey=vwMaster}}" 
                   IsSynchronizedWithCurrentItem="True"
                    x:Name="dlgMaster"
                   RowDetailsVisibilityMode="Visible" Grid.ColumnSpan="2" Margin="0,0.2,0.2,0"
                   >
            <DataGrid.Columns>
                <DataGridTextColumn Binding="{Binding Path=GAGFARBE,Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"  Header="{Binding Source={Localization:Translate Word=色号}}" Width="Auto" />
                <DataGridTextColumn Binding="{Binding Path=GAGPOS,Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"  Header="{Binding Source={Localization:Translate Word=行}}" Width="Auto" />
                <DataGridTextColumn Binding="{Binding Path=GAGGART,Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"  Header="{Binding Source={Localization:Translate Word=子物料}}" Width="Auto" />
                <DataGridTextColumn Binding="{Binding Path=GAGGVAR, Mode=TwoWay}"   Width="Auto" />
                <DataGridTextColumn Binding="{Binding Path=GAGFARBE, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"   Header="{Binding Source={Localization:Translate Word=子色号}}" Width="Auto" />
                <DataGridTextColumn Binding="{Binding Path=GAGKGNET, Converter={StaticResource ResourceKey=dw}, Mode=TwoWay}" Header="{Binding Source={Localization:Translate Word=用量}}" Width="Auto" />
            </DataGrid.Columns>
        </DataGrid  >
        <TreeView Grid.Row="1" Grid.Column="1" Name="BOMTree">
            
        </TreeView>
    </Grid>
</T:ViewBase>
